package router

import (
	"github.com/gin-gonic/gin"
	"template/internal/controller"
	"template/pkg/upload"
)

var miniApiVer *gin.RouterGroup

func InitRouter(g *gin.Engine) {
	installController(g)
}

func installController(engine *gin.Engine) {
	miniApiVer = engine.Group("api")

	miniApiVer.POST("uploaderToS3", upload.UploadToS3)
	miniApiVer.POST("uploader", upload.BatchUpload)
	miniApiVer.POST("testController", controller.TestController)

}
